package cz.rosada.sx.library;

public class Log {

	public enum LogType {
		NONE, JAVA, ANDROID
	}
	
	public static LogType logType = LogType.ANDROID;
	
	private static final java.util.logging.Logger sLogger = java.util.logging.Logger.getLogger(null);
//	private static final org.apache.log4j.Logger sLogger = org.apache.log4j.Logger.getLogger(null); 
	
	public static void e(final String tag, final String message) {
		switch (logType) {
		case JAVA:
			sLogger.info(message);
			break;

		case ANDROID:
//			android.util.Log.e(tag, message);
			break;

		default:
			break;
		}
	}
	
	public static void w(final String tag, final String message) {
		switch (logType) {
		case JAVA:
			sLogger.warning(message);
			break;

		case ANDROID:
//			android.util.Log.w(tag, message);
			break;

		default:
			break;
		}
	}

	public static void i(final String tag, final String message) {
		switch (logType) {
		case JAVA:
			sLogger.info(message);
			break;

		case ANDROID:
//			android.util.Log.e(tag, message);
			break;

		default:
			break;
		}
	}

	public static void d(final String tag, final String message) {
		switch (logType) {
		case JAVA:
			sLogger.log(java.util.logging.Level.CONFIG, message);
			break;

		case ANDROID:
//			android.util.Log.e(tag, message);
			break;

		default:
			break;
		}
	}

	public static void v(final String tag, final String message) {
		switch (logType) {
		case JAVA:
			sLogger.log(java.util.logging.Level.CONFIG, message);
			break;

		case ANDROID:
//			android.util.Log.e(tag, message);
			break;

		default:
			break;
		}
	}
}
